package com.hckjsec.oa.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.hckjsec.oa.mapper.OaAuditingMapper;
import com.hckjsec.oa.domain.OaAuditing;
import com.hckjsec.oa.service.IOaAuditingService;

/**
 * 公司OA审核Service业务层处理
 * 
 * @author cyt
 * @date 2022-01-11
 */
@Service
public class OaAuditingServiceImpl implements IOaAuditingService 
{
    @Autowired
    private OaAuditingMapper oaAuditingMapper;

    /**
     * 查询公司OA审核
     * 
     * @param id 公司OA审核ID
     * @return 公司OA审核
     */
    @Override
    public OaAuditing selectOaAuditingById(Long id)
    {
        return oaAuditingMapper.selectOaAuditingById(id);
    }

    /**
     * 查询公司OA审核列表
     * 
     * @param oaAuditing 公司OA审核
     * @return 公司OA审核
     */
    @Override
    public List<OaAuditing> selectOaAuditingList(OaAuditing oaAuditing)
    {
        return oaAuditingMapper.selectOaAuditingList(oaAuditing);
    }

    /**
     * 新增公司OA审核
     * 
     * @param oaAuditing 公司OA审核
     * @return 结果
     */
    @Override
    public int insertOaAuditing(OaAuditing oaAuditing)
    {
        return oaAuditingMapper.insertOaAuditing(oaAuditing);
    }

    /**
     * 修改公司OA审核
     * 
     * @param oaAuditing 公司OA审核
     * @return 结果
     */
    @Override
    public int updateOaAuditing(OaAuditing oaAuditing)
    {
        return oaAuditingMapper.updateOaAuditing(oaAuditing);
    }

    /**
     * 批量删除公司OA审核
     * 
     * @param ids 需要删除的公司OA审核ID
     * @return 结果
     */
    @Override
    public int deleteOaAuditingByIds(Long[] ids)
    {
        return oaAuditingMapper.deleteOaAuditingByIds(ids);
    }

    /**
     * 删除公司OA审核信息
     * 
     * @param id 公司OA审核ID
     * @return 结果
     */
    @Override
    public int deleteOaAuditingById(Long id)
    {
        return oaAuditingMapper.deleteOaAuditingById(id);
    }
}
